package solution.T0125_1_Hero;

class Mage extends Hero {

    @Override
    protected double getTotalAttack() {
        // 法师的总攻击力 = 自身的攻击力
        return attack;
    }

    @Override
    protected double enhance(double attack) {
        // 增强后的攻击力 = 总攻击力 * 法术强度
        return attack * (1 + power);
    }

    @Override
    protected boolean shouldCalculateDefence() {
        return false;
    }
}
